<?php /* Smarty version 2.6.18, created on 2017-09-02 20:45:02
         compiled from times.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'header2.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<style type="text/css">
.data_table .flag{width:70px;}
.data_table input{width:70px;}
.data_table td{height:30px;}
.pantb td{text-align:center}
input.s1{padding:1.5px;}
label{color:red}
</style>
</head>
<body id="topbody">
<script id=myjs language="javascript">
var js=1;var sss='times';
</script>

<div class="main">
	<div class="top_info">
		<span class="title">开关盘时间调整</span><span class="right"></span>
	</div>
		<div class="contents param_panel">
			<div class="game_class">
				<ul>
<?php if ($this->_tpl_vars['config']['fasttype'] == 1): ?>
<li><span>快开彩</span>
<?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['game']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
    <?php if ($this->_tpl_vars['game'][$this->_sections['i']['index']]['fast'] == 1): ?><a href="javascript:void(0)" class="g<?php echo $this->_tpl_vars['game'][$this->_sections['i']['index']]['gid']; ?>
"  gid='<?php echo $this->_tpl_vars['game'][$this->_sections['i']['index']]['gid']; ?>
'><?php echo $this->_tpl_vars['game'][$this->_sections['i']['index']]['gname']; ?>
</a><?php endif; ?>
 <?php endfor; endif; ?>
</li>
<?php endif; ?>
<?php if ($this->_tpl_vars['config']['slowtype'] == 1): ?>
<li><span>低频彩</span>
<?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['game']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
    <?php if ($this->_tpl_vars['game'][$this->_sections['i']['index']]['fast'] == 0): ?><a href="javascript:void(0)" class="g<?php echo $this->_tpl_vars['game'][$this->_sections['i']['index']]['gid']; ?>
" gid='<?php echo $this->_tpl_vars['game'][$this->_sections['i']['index']]['gid']; ?>
'><?php echo $this->_tpl_vars['game'][$this->_sections['i']['index']]['gname']; ?>
</a><?php endif; ?>
 <?php endfor; endif; ?>
</li>
<?php endif; ?>
				</ul>
			</div>
 
			<table class="layout pantb">
			<tbody>
			<tr>
				
				<td class="panel">
					<table class="list data_table at_0">
					<thead>
<tr><th>期数</th><th>开盘时间</th><th>关盘时间</th><th>状态</th></tr>
					</thead>
					<tbody>
 <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['kj']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
  <tr><th><?php echo $this->_tpl_vars['kj'][$this->_sections['i']['index']]['qishu']; ?>
</th><td><?php echo $this->_tpl_vars['kj'][$this->_sections['i']['index']]['opentime']; ?>
</td><td><?php echo $this->_tpl_vars['kj'][$this->_sections['i']['index']]['closetime']; ?>
</td><td><?php echo $this->_tpl_vars['kj'][$this->_sections['i']['index']]['zt']; ?>
</td></tr>
 <?php endfor; endif; ?>
   					</tbody>
					</table>
 <div class="page"><div class="page_info"  page='<?php echo $this->_tpl_vars['page']; ?>
' pcount='<?php echo $this->_tpl_vars['pcount']; ?>
'>
<span class="record">共 <span><?php echo $this->_tpl_vars['rcount']; ?>
</span> 条记录</span>
<span class="page_count">共 <span><?php echo $this->_tpl_vars['pcount']; ?>
</span> 页</span>
<span class="page_control">

</span>
</div>
</div>
				</td>
                <td class="panel">
					<table class="list data_table at_0">
					<thead>
					<tr>
<th>彩种</th> <th>开盘</th> <th>开盘时间推迟[秒]</th><th>关盘时间提前[秒]</th>
					</thead>
					<tbody>
                    
    <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['game']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
     <TR gid=<?php echo $this->_tpl_vars['game'][$this->_sections['i']['index']]['gid']; ?>
 class="times">
     <th><?php echo $this->_tpl_vars['game'][$this->_sections['i']['index']]['gname']; ?>
</th>
     <td><input type="checkbox" value=1 <?php if ($this->_tpl_vars['game'][$this->_sections['i']['index']]['io'] == 1): ?>checked<?php endif; ?> /></td>
      <td><input type="text" value='<?php echo $this->_tpl_vars['game'][$this->_sections['i']['index']]['o']; ?>
' class="o" /></td>
      <td><input type="text" value='<?php echo $this->_tpl_vars['game'][$this->_sections['i']['index']]['c']; ?>
' class="c" /></td>
     </TR>
  <?php endfor; endif; ?>
   					</tbody>
					</table>
    	<div class="control"><BR />
	<input type="button" value="保存" class="button send"><input type="button" value="取消" class="button" style="display:none">
		</div>
				</td>
			</tr>
			</tbody>
			</table>
		</div>

</div>


</div>
<div id='test'></div>
<script language="javascript">
var gid=<?php echo $this->_tpl_vars['gid']; ?>
;
</script>
</body>
</html>